import request from '@/utils/request'

export function authLoginfunction(params) {
  return request({
    url: '/spms/auth/login',
    data: params,
    method: 'post'
  })
}
export function loginUseRefreshTokenfunction(params) {
  return request({
    url: '/spms/auth/refresh',
    data: params,
    method: 'post'
  })
}

export function getLoginCode(time, name) {
  return request({
    url: `/online/authorization/auth/captcha?time=${time}&username=${name}`,
    method: 'get'
  })
}
